package com.example.tool.web.dd;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@CrossOrigin(origins = "*")
@RequestMapping("/tool/express")
public class ExpressController {

    //参考回调代码
    @RequestMapping("/callback")
    @ResponseBody
    public String  callback(@RequestBody String data) {
    System.out.println(data);
        return "成功";
    }
}
